package cn.stronglink.asset.module.basicdata.storeRoom.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;

import cn.stronglink.asset.model.StoreRoom;

public interface StoreRoomMapper {
	
	public List<StoreRoom> queryStoreRoom(Pagination page,@Param("params") Map<String, Object>  params);
	
	public void removeStoreRoom(@Param("id")Long id);

	public void insertStoreRoom(StoreRoom storeRoom);

	public void updateStoreRoom(StoreRoom storeRoom);

	public List<StoreRoom> queryRoomList();

	public int qryRoomCount();

	public StoreRoom qryRoomByName(@Param("roomName") String roomName);

	public List<StoreRoom> getRoomByUser();

	public Long getRoomIdByRack(@Param("rackCode") String rackCode);

	public StoreRoom qryRoomNameById(@Param("roomId") String roomId);

	public Long qryRoomByCode(@Param("roomCode") String roomCode);

	public Integer getRoomType(@Param("roomId") Long roomId);

	public int getIsUsedRoom(@Param("id") Long id);

}
